package dp.structual.decorator.coffee.decorator;

import dp.structual.decorator.coffee.Coffee;

public class WithMilk extends CoffeeDecorator{

    public WithMilk(Coffee coffee) {
        super(coffee);
    }

    @Override
    public double getCost() {
        return coffee.getCost() + 0.5;
    }

    @Override
    public String getDescription() {
        return coffee.getDescription() + ", with milk";
    }
}
